<%--
  Created by IntelliJ IDEA.
  User: cy123
  Date: 2021/10/16
  Time: 10:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="resource/js/jquery-3.2.1.js"></script>
    <link href="resource/css/index.css" rel="stylesheet">
</head>
<body>
    <form:form modelAttribute="emp" method="post" action="insert">
      报销单号:<form:input path="id"></form:input>
              <form:errors path="id" cssStyle="color: red"></form:errors><br><br>
      报销日期:<form:input path="date" type="date"></form:input>
              <form:errors path="date" cssStyle="color: red"></form:errors><br><br>
      员工编号:<form:input path="eid"></form:input>
              <form:errors path="eid" cssStyle="color: red"></form:errors><br><br>
      员工姓名:<form:input path="ename"></form:input>
              <form:errors path="ename" cssStyle="color: red"></form:errors><br><br>
      性别:<from:select path="sex">
            <form:option value="" label="请选择"></form:option>
            <form:options items="${sex}" itemLabel="name"></form:options>
          </from:select><form:errors path="sex" cssStyle="color: red"></form:errors><br><br>
      所属部门:<form:select path="deptid">
                <form:option value="" label="请选择"></form:option>
                <form:options items="${dept}" itemLabel="deptname" itemValue="deptid"></form:options>
              </form:select><form:errors path="deptid" cssStyle="color: red"></form:errors><br><br>
      总费用:<form:input path="total"></form:input>
            <form:errors path="total" cssStyle="color: red"></form:errors><br><br>
      附件:<form:input path="attachment"></form:input>
            <form:errors path="attachment" cssStyle="color: red"></form:errors><br><br>
      <input type="submit" value="新增">
    </form:form>
</body>
</html>
